
import type { storesAddParamas, StoresData, StoreservicesListData } from "../type/stores"
import http from "../utils/request"

// 服务范围
export const storeservicesList = () => http.get<StoreservicesListData>('/storeservices/list')
// 列表
export const storesList = (data: any) => http.get<StoresData>('/stores/list', data)
// 单个删除
export const storesDelete = (id: number) => http.get<StoresData>('/stores/delete', { id })
// 批量删除
export const storesDeleteAll = (ids: number[]) => http.post<StoresData>('/stores/deleteall', { ids })
// 添加
export const storesAdd = (params: storesAddParamas) => http.post<StoresData>('/stores/add', params)
// 添加
export const storesGet = (id: number) => http.get<storesAddParamas>('/stores/get', { id })
